const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  outputDir: process.env.VUE_APP_FILE_NAME,
  publicPath: process.env.NODE_ENV === "development" ? "/" : "/html",
  devServer: {
    historyApiFallback: true,
    proxy: {
      "/admin": {
        target: "https://test.verjs.cn/admin_base",
        secure: true,
        changeOrigin: true,
        pathRewrite: {
          '^/admin': ''
        }
      },
      "/api_image": {
        target: "https://test.verjs.cn",
        secure: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api_image': ''
        }
      }
    },
    client: {
      overlay: false
    }
  }
})
